using System.Configuration;
using System.Xml;

namespace ViewOn.Helper
{
	/// <summary>
	/// A IConfigurationSectionHandler for XML document.
	/// </summary>
	public sealed class XmlConfigurationSectionHandler : IConfigurationSectionHandler
	{
		public XmlConfigurationSectionHandler()
		{
		}

		public object Create(object parent, object configContext, XmlNode section)
		{
			XmlDocument document = new XmlDocument();
			document.LoadXml(section.OuterXml);
			return document;
		}
	}
}